package Experiment2;

public class StudentCourseTest {
    public static void main(String[] args) {
        // 初始化对象
        Teacher t1 = new Teacher("T001", "张三", "男");
        Teacher t2 = new Teacher("T002", "李四", "女");

        Course c1 = new Course("C001", "Java程序设计", "教学楼A101", "周一上午9-11点", "T001");
        Course c2 = new Course("C002", "数据库原理", "实验楼B202", "周三下午2-4点", "T002");

        Student s1 = new Student("S001", "王五", "男");
        Student s2 = new Student("S002", "赵六", "女");

        // 模拟业务流程
        t1.openCourse(c1);
        t2.openCourse(c2);

        s1.selectCourse(c1);
        s1.selectCourse(c2);
        s2.selectCourse(c1);

        s1.dropCourse(c2);

        s1.printSchedule();
        s2.printSchedule();
    }
}
